//
//  ProductDownCollectionViewCell.m
//  MJApp
//
//  Created by wangliang on 15/3/16.
//  Copyright (c) 2015年 wangliang. All rights reserved.
//

#import "ProductDownCollectionViewCell.h"

@interface ProductDownCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIView *backView;
@property (weak, nonatomic) IBOutlet UIImageView *image;

@end

@implementation ProductDownCollectionViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setIsSelect:(BOOL)isSelect {
    
    _isSelect = isSelect;
    if (isSelect) {
        
        self.backView.backgroundColor = [UIColor redColor];
    }else {
        
        self.backView.backgroundColor = [UIColor whiteColor];
    }
}
- (void)setImageDic:(NSDictionary *)imageDic{
    _imageDic = imageDic;
    NSString * urlStr = [NSString stringWithFormat:@"%@%@",kUrl,imageDic[@"image"]];
    [self.image sd_setImageWithURL:[NSURL URLWithString:urlStr] placeholderImage:nil];
    
    
}

@end
